name: Lint Check

on:
  push:
    branches:
      - master

jobs:
  check-formatting:
    name: Lint Check
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Install Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '16'

      - name: Install dependencies
        run: npm ci

      - name: Check code with ESLint
        run: npm run lint
